package com.duotai.duotai4;

public class Teacher extends People{
    private String job;

    public Teacher() {
    }

    public Teacher(String job) {
        this.job = job;
    }

    public Teacher(int id, String name, String job) {
        super(id, name);
        this.job = job;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    public String toString() {
        return "People{" +
                "id=" + getId() +
                ", name='" + getName() + '\'' +
                ", job='" + job + '\'' +
                '}';
    }


}
